package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author redjava
 * @create 2021-07-20 10:17
 */
@Controller
public class IndexController {
    @GetMapping("/")
    public String index(){
        return "index";
    }

//    @GetMapping("/callback")
//    @ResponseBody
//    public String callback(@RequestParam("code") String code){
//
//        return code;
//    }
}
